changed fallback macro to have the same return type as rint().
authorSven Neumann <sven@gimp.org>
Wed, 21 May 2008 09:48:39 +0000 (09:48 +0000)
committerSven Neumann <neo@src.gnome.org>
Wed, 21 May 2008 09:48:39 +0000 (09:48 +0000)
2008-05-21  Sven Neumann  <sven@gimp.org>

* babl/babl-internal.h (rint): changed fallback macro to have the
same return type as rint().

svn path=/trunk/; revision=314

ChangeLog
babl/babl-internal.h

index c6cf2ccc190a1f80ec802ad07b87e99a2a960f72..92dc6ebddf4117e4d45bd434153c3f34652114a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-21  Sven Neumann  <sven@gimp.org>
+
+       * babl/babl-internal.h (rint): changed fallback macro to have the
+       same return type as rint().
+
 2008-05-21  Jan Heller  <jheller@svn.gnome.org>
 
        * babl/babl-internal.h:
index c7d6110f020e0b9ec9661675c834e9948cfea4ac..7ceead37cb9d0edca9072353bc06a1857c05dedf 100644 (file)
@@ -54,7 +54,7 @@
 
 /* fallback to floor function when rint is not around */
 #ifndef HAVE_RINT
-# define rint(f)  ((long) floor (((double) f) + 0.5))
+# define rint(f)  (floor (((double) (f)) + 0.5))
 #endif